/**
 * 
 */
package com.nextive.interview.service;

import com.nextive.interview.dto.UserPreferences;

/**
 * @author Cesar Roman
 *
 */
public interface UserInfoService {

	public enum USER_INFO_KEYS {
		
		USER_INFO_PREFERENCES(""),
		NAME("Unknown name"),
		EMAIL("Unknown email"),
		RECIPIENT("Unknown recipient"),
		OPTION(METRICS.KG.name());
		
		private String defaultValue;
		
		private USER_INFO_KEYS(String defaultIn) {
			
			defaultValue = defaultIn;
			
		}
		
		public String getDefaultValue() {
			
			return defaultValue;
			
		}

	}
	
	public enum METRICS {
		
		KG,
		
		LB;
		
	}

	boolean isUserFirstAccess();
	
	void saveUserInfo(String name, String email, String recipient, METRICS metric);
	
	UserPreferences fetchUserInfo();

}
